<include file="Public:head"/>
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>订单列表</h5>
                    <div class="ibox-tools" style="margin-top: -9px;">
                        <a href="javascript:location.reload();" class="btn btn-primary"><i class="fa fa-refresh"></i> 刷新</a>
                    </div>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-3">

                        </div>

                    </div>

                    <br />

                    <div class="table-responsive">
                        <form action="__URL__/operate" method="post" id="operate_form">
                            <table class="table table-bordered table-hover"
                                   id="categoryTable">
                                <thead>
                                <tr class="active">
                                    <th height="40">ID</th>
                                    <th height="80">退货编号</th>
                                    <th>需求圈</th>
                                    <th>商品</th>
                                    <th>数量</th>
                                    <th>单价</th>
                                    <th>凭证图片</th>
                                    <th>备注</th>
                                    <th>退货状态</th>
                                    <th>是否到账</th>
                                    <th width="80">操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <volist name="list" id="vo">
                                    <tr>
                                        <td>{$vo.id}</td>
                                        <td>{$vo.refund_sn}</td>
                                        <td>{$vo.circle_name}</td>
                                        <td><img src="__STATIC__/uploads/{$vo.goods_image}" alt="" height="80px" width="80px">{$vo.goods_name}</td>
                                        <td>{$vo.goods_num}</td>
                                        <td>{$vo.goods_price}</td>
                                        <td>
                                            <volist name="vo.certificate_image" id="v">
                                                <img src="{$v}" width="120" height="120">
                                            </volist>
                                        </td>
                                        <td width="200px">{$vo.remarks}</td>
                                        <td>
                                            <switch name="$vo.status">
                                                <case value="0">待审核</case>
                                                <case value="1">成功退货</case>
                                                <case value="-1">不允许退货</case>
                                            </switch>
                                        </td>
                                        <td>
                                            <switch name="$vo.money_arrives_status">
                                                <case value="0">未到账</case>
                                                <case value="1">到账</case>
                                            </switch>
                                        </td>
                                        <td>
                                            <a href="{:url('Order/refunddetail',array('id'=>$vo['id']))}" class="btn btn-primary">处理</a>
                                        </td>
                                    </tr>
                                </volist>

                                </tbody>
                            </table>
                        </form>
                        <div class="col-sm-12" style="padding:0px;">
                            <ul class="pagination  pull-right">
                                {$page}
                            </ul>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript" src="__STATIC__/laydate/laydate.js"></script>
<script>
    //日期范围
    laydate.render({
        elem: '#time'
        ,range: true
    });
</script>

</body>

</html>